using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Collections;
using System.Collections.Specialized;

namespace UMC.Web
{
    /// <summary>
    /// 客户端的Http请求
    /// </summary>
    public class UIAjaxDialog : UIDialog
    {
        /// <summary>
        /// 客户端的Http请求
        /// </summary>
        public UIAjaxDialog(String url)
        {
            this.Config.Put("Url", url);
        }
        /// <summary>
        /// 客户端的Http请求
        /// </summary>
        public UIAjaxDialog(String url, String method, String body) :
            this(url, method, "application/x-www-form-urlencoded", body)
        { }


        /// <summary>
        /// 客户端的Http请求
        /// </summary>
        public UIAjaxDialog(String url, String method, String contentType, String body)
        {
            this.Config.Put("Url", url, "Method", method, "Body", body, "ContentType", contentType);
        }

        /// <summary>
        /// 对话框类型
        /// </summary>
        protected override string DialogType
        {
            get { return "Ajax"; }
        }

    }
}
